/*
 * Copyright 2007-2009 Perttu "celeron55" Ahola <celeron55@gmail.com>
 *
 * This file is part of jukuMagic.
 *
 * jukuMagic is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * jukuMagic is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with jukuMagic.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef commonfunctions_h_
#define commonfunctions_h_

#include <string>
using namespace std;

//kyllä, nämä ovat täyttä roskaa mutta mitä väliä?

extern string trim(string str);
extern string itos(int i);
extern std::string dtos(double d, int p);

class strfnd{
	string tek;
	unsigned int p;
public:
	void moveto(unsigned int place);
	void start(string niinq);
	string next(string plop);
	bool inend();
	strfnd(string s);
};

#endif

